
#ifndef OUTPUTPORTCL_HEADER
#define OUTPUTPORTCL_HEADER

#include <map>
#include <list>

#include "ddconfig.h"
#include "stypes.h"
#include "pobjcl.h"
#include "uccl.h"

using namespace std;

struct output {
  long tick;
  t_mem value;
};
typedef map<int, list<struct output> > output_map;

class cl_output_port: public cl_hw
{
  public:
    TYPE_UBYTE value;
    output_map outputs;

    cl_output_port(class cl_uc *auc);
    virtual void set_cmd(class cl_cmdline *cmdline, class cl_console_base *con);
    virtual void print_info(class cl_console_base *con);


    virtual void add_output(int port, long tick, t_mem value);
    virtual void print_outputs(char *file_name);
};


#endif


